package com.foxmail.yusp.mycloud;

import java.util.Locale;

class Schedule {
    private int idx;
    private int start;
    private int on_time;

    public Schedule(int idx, int start, int on_time) {
        this.idx = idx;
        this.start = start;
        this.on_time = on_time;
    }

    public String getIdx() {
        return Integer.toString(idx);
    }

    public String getStart() {

        return String.format(Locale.CHINA, "%02d:%02d", start / 3600, (start % 3600) / 60);
    }

    public String getOn_time() {
        return Integer.toString(on_time);
    }
}
